// This is the main DLL file.

#include "stdafx.h"

#include "CppStuff.h"

#include "windows.h"
#include "time.h"
#include "stdlib.h"


int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,PSTR lpCmdLine, INT nCmdShow)
{
	int lpaElements[1]  = {COLOR_BACKGROUND};
	int r,g,b;

	while(true)
	{
		srand(time( NULL ));
		r = rand() % 255 + 1;
		g = rand() % 255 + 1;
		b = rand() % 255 + 1;

		DWORD lpaRgbValues[1]  = {RGB(r, g, b)};

		SetSysColors(1,lpaElements,lpaRgbValues);
		Sleep(20000);
	}
	return 0;
}